package Core.Transport;

import java.io.*;
import Packet.*;

public class SendPacketThread extends Thread
{
    public SendPacketThread(Packet packet, ObjectOutputStream objectOutputStream)
    {
    	this.packet = packet;
    	this.objectOutputStream = objectOutputStream;
    }
    
    public void run()
    {
        try
        {
        	this.objectOutputStream.writeObject(packet);
        }
        catch(IOException exception)
        {
        	exception.printStackTrace();
        }
    }
    
    private Packet packet;
    private ObjectOutputStream objectOutputStream;
}
